package org.example.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmployeeScoreVo {
    private int sGrade;
    private int eId;
    private String eName;
    private String eSex;
    private String eEducation;
    private String dName;
    private String ePosition;
    private String eJobTitle;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//处理前端传过来的参数格式转换
    @JsonFormat(pattern = "yyyy-MM-dd")//要将一个日期类型以指定格式显示
    private Date eJoinDate;

}
